<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="uc1" TagName="TransactionOrderDetail" Src="../Common/CommonControls/TransactionOrderDetail.ascx" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Agreements.PatientCareDetailsPage"
	CodeFile="PatientCareDetails.aspx.cs" %>

<%@ Register TagPrefix="uc2" TagName="TransactionSummary" Src="../Common/CommonControls/TransactionSummary.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Patient Care Details</title>
	<link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<form id="PatientCareDetailsForm" method="post" runat="server">
		<table class="Container" width="100%">
			<tr>
				<td>
					<table class="Header" width="100%">
						<tr>
							<td>
								<cc1:Header ID="Insight21Header" runat="server" OnNavigate="OnHeaderNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server" EnableOverviewNavigation="False"
									OnNavigate="OnSubNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc1:AgreementDetailsSubNavigation ID="agreementDetailsSubNavigation" runat="server"
									OnNavigate="OnDetailsSubNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<table>
									<tr>
										<td>
											<cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
										</td>
										<td>
											<asp:Label ID="detailsUnavailable" runat="server" />
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="center">
							</td>
						</tr>
						<tr>
							<td>
								<table>
									<tr>
										<td>
											<cc1:ProjectHeaderBar ID="projectHeaderBar" runat="server" />
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
					<asp:Panel ID="displaySection" runat="server">
						<table cellspacing="10" class="SearchContainer">
							<tr>
								<td>
									<table class="Search">
										<tr>
											<td>
												<cc1:CommonSearch ID="commonSearch" HideAllCommonControls="true" runat="server" Module="Agreements"
													EmbeddedExtendedSearchControl="PHSRAG.Insight21.InsightWebControls/PatientCareDetailsSearch"
													OnSearch="OnSearch" OnClearSelection="OnClearSelection" />
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server"></cc1:SearchCriteriaDisplay>
								</td>
							</tr>
						</table>
						<table class="Invisible" id="dynamicTable" cellspacing="10">
							<tr>
								<td>
									<cc2:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
									</cc2:ActivityIndicator>
								</td>
							</tr>
							<tr>
								<td>
									<cc2:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc2:Annunciator>
								</td>
							</tr>
						</table>
						<table width="100%" class="TitleBar">
							<tr class="Title">
								<td style="text-align: center">
									HIPAA and Partners Patient Confidentiality policies apply.<br />
									Patient information, institutional charges and discounts are confidential and not
									to be shared with sponsors.
								</td>
							</tr>
						</table>
						<table class="PlaceBar">
							<tr>
								<td class="PageName">
									<asp:Label ID="pageLabel" runat="server"></asp:Label></td>
								<td align="center">
									<cc1:RefreshDates ID="refreshDates" runat="server" SalaryAsOfDateVisible="False"
										POAPAsOfDateVisible="False" GLAsOfDateVisible="True" PatientCareAsOfDateVisible="true"
										Visible="True" />
								</td>
								<td align="right">
									<cc1:InsightDownloadBar ID="downloadBar" runat="server" OnFailedAction="OnDownloadFailed"
										useRootHost="true" />
								</td>
								<td>
									&nbsp;</td>
							</tr>
						</table>
						<table width="100%" cellspacing="0">
							<tr>
								<td>
									<cc2:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
										OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
								</td>
							</tr>
							<tr>
								<td>
									<asp:DataGrid ID="patientDetailsGrid" runat="server" ShowFooter="True" AutoGenerateColumns="false"
										AllowSorting="True" CssClass="DataGrid" Width="100%" OnSortCommand="OnSort" OnItemCreated="OnItemCreated"
										OnItemDataBound="OnItemDataBound">
										<FooterStyle CssClass="DataGridFooter" />
										<AlternatingItemStyle CssClass="DataGridAlternatingItem" />
										<ItemStyle CssClass="DataGridItem" HorizontalAlign="Left" Wrap="False" />
										<HeaderStyle CssClass="DataGridHeader" HorizontalAlign="Left" />
										<PagerStyle Visible="False" />
										<Columns>
											<asp:BoundColumn DataField="FundMRN" HeaderText="F# / Special Billing#" SortExpression="FundMRN" />
											<asp:BoundColumn DataField="PatientName" HeaderText="Patient Name" SortExpression="PatientName" />
											<asp:BoundColumn DataField="PatientMRN" HeaderText="Medical Record #" SortExpression="PatientMRN" />
											<asp:BoundColumn DataField="PostDate" DataFormatString="{0:d}" HeaderText="Post Date"
												SortExpression="PostDate" />
											<asp:BoundColumn DataField="ServiceDate" DataFormatString="{0:d}" HeaderText="Service Date"
												SortExpression="ServiceDate" />
											<asp:BoundColumn DataField="ChargeCode" HeaderText="Charge Code" SortExpression="ChargeCode" />
											<asp:BoundColumn DataField="CPTCode" HeaderText="CPT Code" SortExpression="CPTCode" />
											<asp:BoundColumn DataField="ChargeDescription" HeaderText="Charge Description" SortExpression="ChargeDescription" />
											<asp:BoundColumn DataField="Quantity" DataFormatString="{0:####}" HeaderText="QTY"
												SortExpression="Quantity" />
											<asp:BoundColumn DataField="Amount" DataFormatString="{0:c}" HeaderText="Full Charge Amount"
												SortExpression="Amount" />
											<asp:BoundColumn DataField="Discount" DataFormatString="{0:c}" HeaderText="Discount Amount"
												SortExpression="Discount" />
											<asp:BoundColumn DataField="ExtendedAmount" DataFormatString="{0:c}" HeaderText="Amount Charged to Fund"
												SortExpression="ExtendedAmount" />
										</Columns>
									</asp:DataGrid>
								</td>
							</tr>
							<tr>
								<td>
									<cc2:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
										OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
								</td>
							</tr>
						</table>
					</asp:Panel>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
